#ifndef _SGF_HEADER_INCLUDED_H_
#define _SGF_HEADER_INCLUDED_H_

#include <Ogre.h>
#include "SGFPrerequisites.h"
#include "PluggableFactory.h"
#include "Game.h"
#include "IGameState.h"
#include "IEntity.h"
#include "MapState.h"
#include "MapFactory.h"

#ifdef _DEBUG
#pragma comment(linker,"OgreMain_d.lib")
#else
#pragma comment(linker,"OgreMain.lib")
#endif

#define SGF_GAME(GameClass) \
	int main(int,char**) \
	{\
		SGF::Game* game=new GameClass;\
		if(game->initialize())\
			game->run();\
		delete game;\
		return true;\
	}

#endif